home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 December / PCWDEC06.iso / Software / Trial / Paint Shop Pro XI / Data1.cab / _2D507793D0BA47429BCFB6C37EDD92EF < prev    next >
Encoding:
Text File  |  2006-08-04  |  6.8 KB  |  192 lines

  1. from PSPApp import *
  2. import PSPUtils
  3.  
  4. def ScriptProperties():
  5.     return {
  6.         'Author': 'Angela M. Cable',
  7.         'Copyright': '2002, for freeware distribution only',
  8.         'Description': "Color reticulation effect",
  9.         'Host': 'Paint Shop Pro',
  10.         'Host Version': '8.00'
  11.         }
  12.  
  13. def Do(Environment):
  14.     if not PSPUtils.IsTrueColor(Environment, App.TargetDocument):
  15.         # IncreaseColorsTo16Million
  16.         App.Do( Environment, 'IncreaseColorsTo16Million', {
  17.             'GeneralSettings': {
  18.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  19.                 'AutoActionMode': App.Constants.AutoActionMode.Match
  20.                 }
  21.             })
  22.  
  23.     App.Do( Environment, 'LayerDuplicate', {
  24.             'GeneralSettings': {
  25.                 'ExecutionMode': App.Constants.ExecutionMode.Default
  26.                 }
  27.             })
  28.  
  29.     App.Do( Environment, 'SelectLayer', {
  30.             'Path': (0,-1,[],App.Constants.Boolean.false), 
  31.             'GeneralSettings': {
  32.                 'ExecutionMode': App.Constants.ExecutionMode.Silent
  33.                 }
  34.             })
  35.  
  36.     App.Do( Environment, 'LayerDuplicate', {
  37.             'GeneralSettings': {
  38.                 'ExecutionMode': App.Constants.ExecutionMode.Default
  39.                 }
  40.             })
  41.  
  42.     App.Do( Environment, 'EdgePreservingSmooth', {
  43.             'SmoothingFactor': 30, 
  44.             'GeneralSettings': {
  45.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  46.                 'PreviewVisible': App.Constants.Boolean.true, 
  47.                 'AutoProof': App.Constants.Boolean.false
  48.                 }
  49.             })
  50.  
  51.     App.Do( Environment, 'SelectLayer', {
  52.             'Path': (0,1,[],App.Constants.Boolean.false), 
  53.             'GeneralSettings': {
  54.                 'ExecutionMode': App.Constants.ExecutionMode.Silent
  55.                 }
  56.             })
  57.  
  58.     App.Do( Environment, 'ColoredEdges', {
  59.             'Intensity': 7, 
  60.             'Blur': 3, 
  61.             'Color': (0,0,0), 
  62.             'Luminance': 31, 
  63.             'GeneralSettings': {
  64.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  65.                 'PreviewVisible': App.Constants.Boolean.true, 
  66.                 'AutoProof': App.Constants.Boolean.false
  67.                 }
  68.             })
  69.  
  70.     App.Do( Environment, 'EnhanceEdgesMore', {
  71.             'GeneralSettings': {
  72.                 'ExecutionMode': App.Constants.ExecutionMode.Default
  73.                 }
  74.             })
  75.  
  76.     App.Do( Environment, 'EnhanceEdgesMore', {
  77.             'GeneralSettings': {
  78.                 'ExecutionMode': App.Constants.ExecutionMode.Default
  79.                 }
  80.             })
  81.  
  82.     App.Do( Environment, 'SaltAndPepper', {
  83.             'SpeckSize': 15, 
  84.             'Sensitivity': 5, 
  85.             'IncludeAllLowerSizes': App.Constants.Boolean.true, 
  86.             'Agressive': App.Constants.Boolean.false, 
  87.             'GeneralSettings': {
  88.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  89.                 'PreviewVisible': App.Constants.Boolean.true, 
  90.                 'AutoProof': App.Constants.Boolean.false
  91.                 }
  92.             })
  93.  
  94.     App.Do( Environment, 'ColorAdjustHSL', {
  95.             'HSL': {
  96.                 'Colorize': App.Constants.Boolean.false, 
  97.                 'Master': (0,-100,0), 
  98.                 'MasterColorize': (8,25,0), 
  99.                 'Red': (0,0,0,315,345,15,45), 
  100.                 'Green': (0,0,0,75,105,135,165), 
  101.                 'Blue': (0,0,0,195,225,255,285), 
  102.                 'Cyan': (0,0,0,135,165,195,225), 
  103.                 'Magenta': (0,0,0,255,285,315,345), 
  104.                 'Yellow': (0,0,0,15,45,75,105)
  105.                 }, 
  106.             'GeneralSettings': {
  107.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  108.                 'PreviewVisible': App.Constants.Boolean.true, 
  109.                 'AutoProof': App.Constants.Boolean.false
  110.                 }
  111.             })
  112.  
  113.     App.Do( Environment, 'HistogramAdjustment', {
  114.             'LuminanceChannel': {
  115.                 'Appearance': 0, 
  116.                 'Gamma': 1.000, 
  117.                 'HighClipLimit': 158, 
  118.                 'HighClipLimitPercentage': None, 
  119.                 'LowClipLimit': 0, 
  120.                 'LowClipLimitPercentage': None, 
  121.                 'MaxOutput': 255, 
  122.                 'MinOutput': 0
  123.                 }, 
  124.             'RedChannel': {
  125.                 'Appearance': 0, 
  126.                 'Gamma': 1.000, 
  127.                 'HighClipLimit': 255, 
  128.                 'HighClipLimitPercentage': None, 
  129.                 'LowClipLimit': 0, 
  130.                 'LowClipLimitPercentage': None, 
  131.                 'MaxOutput': 255, 
  132.                 'MinOutput': 0
  133.                 }, 
  134.             'GreenChannel': {
  135.                 'Appearance': 0, 
  136.                 'Gamma': 1.000, 
  137.                 'HighClipLimit': 255, 
  138.                 'HighClipLimitPercentage': None, 
  139.                 'LowClipLimit': 0, 
  140.                 'LowClipLimitPercentage': None, 
  141.                 'MaxOutput': 255, 
  142.                 'MinOutput': 0
  143.                 }, 
  144.             'BlueChannel': {
  145.                 'Appearance': 0, 
  146.                 'Gamma': 1.000, 
  147.                 'HighClipLimit': 255, 
  148.                 'HighClipLimitPercentage': None, 
  149.                 'LowClipLimit': 0, 
  150.                 'LowClipLimitPercentage': None, 
  151.                 'MaxOutput': 255, 
  152.                 'MinOutput': 0
  153.                 }, 
  154.             'TargetChannel': 0, 
  155.             'GeneralSettings': {
  156.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  157.                 'PreviewVisible': App.Constants.Boolean.true, 
  158.                 'AutoProof': App.Constants.Boolean.false
  159.                 }
  160.             })
  161.  
  162.     App.Do( Environment, 'LayerProperties', {
  163.             'General': {
  164.                 'Opacity': None, 
  165.                 'Name': None, 
  166.                 'IsVisible': None, 
  167.                 'IsTransparencyLocked': None, 
  168.                 'LinkSet': None, 
  169.                 'UseHighlight': None, 
  170.                 'PaletteHighlightColor': None, 
  171.                 'GroupLink': None, 
  172.                 'BlendMode': App.Constants.BlendMode.SoftLight
  173.                 }, 
  174.             'BlendRanges': None, 
  175.             'Path': (0,0,[],App.Constants.Boolean.false), 
  176.             'BrightnessContrast': None, 
  177.             'ChannelMixer': None, 
  178.             'ColorBalance': None, 
  179.             'CurveParams': None, 
  180.             'HSL': None, 
  181.             'Threshold': None, 
  182.             'Levels': None, 
  183.             'Posterize': None, 
  184.             'Mask': None, 
  185.             'GeneralSettings': {
  186.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  187.                 'PreviewVisible': App.Constants.Boolean.true, 
  188.                 'AutoProof': App.Constants.Boolean.false
  189.                 }
  190.             })
  191.  
  192.